package com.example.domain;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 袁小弘
 * @describe 培训中心学生管理————班级类
 * @date 2019-12-17 15:03
 */
@Entity
@Table(name = "classes")
public class Classes implements Serializable {

    private static final long serialVersionUID = 6565409968950767523L;

    @Id
    @GeneratedValue
    @Column(name = "class_Id")
    private Integer classId;// 班级ID

    @Column(name = "term_Id")
    private Integer termId;// 学期ID

    @Column(name = "class_type_Id")
    private Integer classTypeId;// 班级类型ID

    @Column(name = "className", length = 32)
    private String className;// 班级名称

//	@Column(name="classType",length=32)
//	private String classType;//班级类型

    @Column(name = "comment", length = 255)
    private String comment;// 备注说明

    @Column(name = "recordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp recordTime;// 创建记录时间

    @Column(name = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;// 更新记录时间

    public Classes() {
        // 无参构造
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public Integer getTermId() {
        return termId;
    }

    public void setTermId(Integer termId) {
        this.termId = termId;
    }

    public Integer getClassTypeId() {
        return classTypeId;
    }

    public void setClassTypeId(Integer classTypeId) {
        this.classTypeId = classTypeId;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Classes [classId=" + classId + ", termId=" + termId + ", classTypeId=" + classTypeId + ", className="
                + className + ", comment=" + comment + ", recordTime=" + recordTime + ", updateTime=" + updateTime
                + "]";
    }


}
